/*
 *  rgs_shape.h
 *  RGS
 *
 *  Copyright 2008 Ivan Safrin.
 *
 *  This code is distributed under the LGPL license.
 *  You should have a copy of LGPL.txt distributed
 *  with the project, but if not you can get a copy
 *  at http://www.gnu.org/licenses/
 *
 */
 
#ifndef RGS_SHAPE_H_
#define RGS_SHAPE_H_

#define RGS_SHAPE_RECT			0
#define RGS_SHAPE_TRIANGLE		1
#define RGS_SHAPE_RECT_OUTLINE	2

#include "rgs_data.h"

#ifdef __cplusplus
extern "C" {
#endif

/* @package Graphics */
/* @beginmodule Shapes */

typedef struct {
	RGS_Object object;
	RGS_Color color;
	short type;
} RGS_Shape;

extern DECLSPEC RGS_Shape *RGS_CreateShape(RGS_Screen *screen, short type, int color, short x, short y, short w, short h);
extern DECLSPEC void RGS_RenderShape(SDL_Surface *target, void *object);

/* @endmodule */

#ifdef __cplusplus
}
#endif

#endif